
import unittest

from SmallShop.BaseObject.BaseObject import BaseObject

from selenium.webdriver.common.by import By

from SmallShop.PageObject.PageObject import PageObject

from SmallShop.PageObject.ShopAdd import shopAdd

from time import sleep

from ddt import ddt,file_data

from selenium import webdriver

@ddt
class ActivityTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls) -> None:

      cls.drive = webdriver.Chrome()
      cls.drive.maximize_window()
      cls.login = PageObject(cls.drive)
      cls.Add = shopAdd(cls.drive)

    @file_data("../data/login.yaml")
    def test01_login(self,uname,pwd):

        self.login.test_UserLogin(uname,pwd)

    @file_data("../data/Add.yaml")
    def test02_Add(self,title,data1,activity):

        self.Add.SdvertisingAdd(title,data1,activity)


if __name__ == '__main__':

    unittest.main()

